package be.kuleuven.mume.framework;

import java.io.Serializable;

public class Prof implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6567733709605900533L;
	
	private String id;
	private String name;
	private String mail;
	private String twitterName;
	
	public Prof(){
		
	}
	
	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getMail() {
		return mail;
	}
	
	public Boolean hasMail(){
		if(mail == null | mail.equals(""))
			return false;
		return true;
	}

	public void setTwitterName(String twitterName) {
		this.twitterName = twitterName;
	}

	public String getTwitterName() {
		return twitterName;
	}
	
	public Boolean hasTwitter() {
		if(twitterName == null | twitterName.equals(""))
			return false;
		return true;
	}
	
	public int countContactMethods() {
		int i = 0;
		if(hasTwitter())
			i++;
		if(hasMail())
			i++;
		return i;
	}
}
